{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e4.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 09:53:12
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "symbols political science students.dta"
{txt}
{com}. 
. drop if rep == 1
{txt}(43 observations deleted)

{com}. 
. set seed  358395
{txt}
{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{res}{txt}(3 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-150.93924}  
Iteration 1:{space 3}log likelihood = {res:-150.93924}  (backed up)

Structural equation model{col 49}Number of obs{col 67}= {res}        97
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-150.93924

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .5150476{col 26}{space 2} .0932876{col 37}{space 1}    5.52{col 46}{space 3}0.000{col 54}{space 4} .3322072{col 67}{space 3} .6978879
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0362729{col 26}{space 2} .0579846{col 37}{space 1}    0.63{col 46}{space 3}0.532{col 54}{space 4}-.0773749{col 67}{space 3} .1499207
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2903545{col 26}{space 2} .0524867{col 37}{space 1}    5.53{col 46}{space 3}0.000{col 54}{space 4} .1874824{col 67}{space 3} .3932267
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2614492{col 26}{space 2} .0497928{col 37}{space 1}    5.25{col 46}{space 3}0.000{col 54}{space 4} .1638571{col 67}{space 3} .3590413
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2687234{col 26}{space 2} .0569079{col 37}{space 1}    4.72{col 46}{space 3}0.000{col 54}{space 4} .1571859{col 67}{space 3} .3802608
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1500223{col 26}{space 2} .0550585{col 37}{space 1}    2.72{col 46}{space 3}0.006{col 54}{space 4} .0421095{col 67}{space 3}  .257935
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2956167{col 26}{space 2} .0451237{col 37}{space 1}    6.55{col 46}{space 3}0.000{col 54}{space 4} .2071759{col 67}{space 3} .3840575
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0618901{col 26}{space 2} .0088869{col 54}{space 4} .0467085{col 67}{space 3} .0820062
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0733165{col 26}{space 2} .0105276{col 54}{space 4}  .055332{col 67}{space 3} .0971464
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}        97{col 27}        .{col 38}-150.9392{col 49}     9{col 58} 319.8785{col 69} 343.0509
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .5150476{col 26}{space 2} .0932876{col 37}{space 1}    5.52{col 46}{space 3}0.000{col 54}{space 4} .3322072{col 67}{space 3} .6978879
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0362729{col 26}{space 2} .0579846{col 37}{space 1}    0.63{col 46}{space 3}0.532{col 54}{space 4}-.0773749{col 67}{space 3} .1499207
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2903545{col 26}{space 2} .0524867{col 37}{space 1}    5.53{col 46}{space 3}0.000{col 54}{space 4} .1874824{col 67}{space 3} .3932267
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2687234{col 26}{space 2} .0569079{col 37}{space 1}    4.72{col 46}{space 3}0.000{col 54}{space 4} .1571859{col 67}{space 3} .3802608
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1500223{col 26}{space 2} .0550585{col 37}{space 1}    2.72{col 46}{space 3}0.006{col 54}{space 4} .0421095{col 67}{space 3}  .257935
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .1384053{col 26}{space 2} .0385684{col 37}{space 1}    3.59{col 46}{space 3}0.000{col 54}{space 4} .0628126{col 67}{space 3} .2139981
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0772686{col 26}{space 2} .0316232{col 37}{space 1}    2.44{col 46}{space 3}0.015{col 54}{space 4} .0152882{col 67}{space 3}  .139249
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .5150476{col 26}{space 2} .0932876{col 37}{space 1}    5.52{col 46}{space 3}0.000{col 54}{space 4} .3322072{col 67}{space 3} .6978879
{txt}{space 11}t {c |}{col 14}{res}{space 2} .1746782{col 26}{space 2} .0599406{col 37}{space 1}    2.91{col 46}{space 3}0.004{col 54}{space 4} .0571967{col 67}{space 3} .2921597
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3676231{col 26}{space 2} .0579927{col 37}{space 1}    6.34{col 46}{space 3}0.000{col 54}{space 4} .2539595{col 67}{space 3} .4812868
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2687234{col 26}{space 2} .0569079{col 37}{space 1}    4.72{col 46}{space 3}0.000{col 54}{space 4} .1571859{col 67}{space 3} .3802608
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1500223{col 26}{space 2} .0550585{col 37}{space 1}    2.72{col 46}{space 3}0.006{col 54}{space 4} .0421095{col 67}{space 3}  .257935
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        97
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0772686{col 26}{space 2}   .03216{col 37}{space 1}    2.40{col 46}{space 3}0.016{col 54}{space 4} .0142362{col 67}{space 3}  .140301
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .3676231{col 26}{space 2} .0586727{col 37}{space 1}    6.27{col 46}{space 3}0.000{col 54}{space 4} .2526268{col 67}{space 3} .4826195
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        97
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .07726861{col 27}{space 2} .0004055{col 38}{space 2} .03215997{col 51}{space 2} .0225971{col 63}{space 1} .1509023{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0266306{col 63}{space 1} .1590762{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .36762315{col 27}{space 2}-.0003875{col 38}{space 2} .05867268{col 51}{space 2} .2512981{col 63}{space 1} .4797906{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .2506625{col 63}{space 1} .4795971{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        97
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .1384053{col 26}{space 2} .0471016{col 37}{space 1}    2.94{col 46}{space 3}0.003{col 54}{space 4} .0460879{col 67}{space 3} .2307227
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .1746782{col 26}{space 2} .0604406{col 37}{space 1}    2.89{col 46}{space 3}0.004{col 54}{space 4} .0562167{col 67}{space 3} .2931396
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}        97
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .13840531{col 27}{space 2} .0022796{col 38}{space 2} .04710159{col 51}{space 2} .0608365{col 63}{space 1} .2413447{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0655011{col 63}{space 1} .2463996{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .17467819{col 27}{space 2} .0000773{col 38}{space 2} .06044062{col 51}{space 2}  .056164{col 63}{space 1}  .290104{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0553996{col 63}{space 1} .2894531{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}        96
                                                {txt}F(3, 92)          =  {res}     4.82
                                                {txt}Prob > F          = {res}    0.0036
                                                {txt}R-squared         = {res}    0.0227
                                                {txt}Root MSE          =    {res} .48606

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2} .0667169{col 26}{space 2} .1025759{col 37}{space 1}    0.65{col 46}{space 3}0.517{col 54}{space 4}-.1370077{col 67}{space 3} .2704415
{txt}{space 4}interest {c |}{col 14}{res}{space 2}-.0072646{col 26}{space 2} .0020861{col 37}{space 1}   -3.48{col 46}{space 3}0.001{col 54}{space 4}-.0114077{col 67}{space 3}-.0031214
{txt}{space 4}ideology {c |}{col 14}{res}{space 2} .1763999{col 26}{space 2}  .195068{col 37}{space 1}    0.90{col 46}{space 3}0.368{col 54}{space 4} -.211022{col 67}{space 3} .5638218
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3030174{col 26}{space 2} .1147324{col 37}{space 1}    2.64{col 46}{space 3}0.010{col 54}{space 4}  .075149{col 67}{space 3} .5308858
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e4.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 09:55:03
{txt}{.-}
{smcl}
{txt}{sf}{ul off}